package com.methods;

/**
 * Sheet类
 * 描述：继承Animal类，饿汉式
 * 2017/8/19
 * @author Erik
 * @version 0.1
 * @since JDK1.8
 * @see com.methods.Animal
 */
public class Sheep extends Animal {
    private Sheep(){}
    private static Sheep sheep = new Sheep();
    public static Sheep getSheep(){ return sheep;}

    @Override
    public void cry() { System.out.println("小羊的叫声：咩咩咩~~~"); }
}
